//添加背景图片
import {OssUrl} from '@/config/index.js'
export default (el,{value})=>{
	let {bg,type=1}=value;
	if(bg){
		let url=type==1? `/static/bg/${bg}.png`:`${OssUrl}/common/bg/${bg}.png`
		console.log(el.style)
		el.style.backgroundImage =`url(${url})`
	}else{
		el.style.backgroundImage='none'
	}
	
}